package cn.hznc.domain.request.inventory;

import io.swagger.models.auth.In;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author：Administrator
 * @Date：2023/5/4 11:17
 */
@Getter
@Setter
public class SingleWarehouseSafetyInventoryParam{

    /**
     * 刀具号
     */
    private String toolNo;

    /**
     * 物料编码
     */
    private String partno;

    /**
     * 安全库存
     */
    private Integer safetyInventory;

    private Integer toolId;

    private String groupId;

    private Integer inventoryLocationId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SingleWarehouseSafetyInventoryParam that = (SingleWarehouseSafetyInventoryParam) o;
        if (!toolNo.equals(that.toolNo)) return false;
        return partno.equals(that.partno);
    }

    @Override
    public int hashCode() {
        int result = toolNo.hashCode();
        result = 31 * result + partno.hashCode();
        return result;
    }
}
